package br.trainee.web.vo;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.QueryHint;
import javax.persistence.Table;

@Entity
@Table(name="Status")
@NamedQueries(value={
		
		@NamedQuery(name="buscarStatusPorTipo",query="select s from StatusVO s where s.tipoStatus = :tipoStatus",
				hints={@QueryHint(name="org.hibernate.cacheable", value="true")})
})
@Cacheable(true)
public class StatusVO extends GenericoVO{
	
	
	@Id
	@Column(name="id_status")
	private Long idStatus;
	
	@Column(name="tipo_status")
	private Integer tipoStatus;
	
	@Column(name="descricao_status")
	private String descricaoStatus;
	
	public StatusVO(){
		
	}

	public Long getIdStatus() {
		return idStatus;
	}

	public void setIdStatus(Long idStatus) {
		this.idStatus = idStatus;
	}

	public Integer getTipoStatus() {
		return tipoStatus;
	}

	public void setTipoStatus(Integer tipoStatus) {
		this.tipoStatus = tipoStatus;
	}

	public String getDescricaoStatus() {
		return descricaoStatus;
	}

	public void setDescricaoStatus(String descricaoStatus) {
		this.descricaoStatus = descricaoStatus;
	}
	
	
	

}
